package com.rn.gypsophila.kafka.component;

import org.apache.kafka.clients.producer.Partitioner;
import org.apache.kafka.common.Cluster;

import java.util.Map;

/**
 * Description: 自定义分区器
 *
 * @author 然诺
 * @date 2021/02/02
 */
public class CustomPartitioner implements Partitioner {
	@Override
	public int partition(String s, Object o, byte[] bytes, Object o1, byte[] bytes1, Cluster cluster) {
		return 0;
	}

	@Override
	public void close() {

	}

	@Override
	public void configure(Map<String, ?> map) {

	}
}
